package com.wyclabs.commons.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 错误代码
 * @author Wyccc
 * @date 2019/10/11
 */
@AllArgsConstructor
public enum ErrorCodes {

    OK("success", "OK"),

    SYSTEM_ERROR("systemError", "系统异常"),

    ERROR_SERVER_BUSY("systemBusy", "系统繁忙，请稍后再试"),

    ERROR_SERVER_ERROR("serverInternalError", "服务器异常，请稍后再试"),

    ERROR_REQUEST_WRONG("requestMethodError", "请求方式不允许"),

    ERROR_NO_AUTHORITY("unauthorized", "无权进行此操作"),

    ERROR_NOT_LOGIN("userNotLogin", "用户未登录"),

    REPEAT_SUBMIT("repeatSubmit", "请不要重复提交");

    @Getter
    @Setter
    private String code;
    @Getter
    @Setter
    private String description;

}
